<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" class="form-control" name="row[nickname]" type="text" data-rule="required" value="{$row.nickname}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Card_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-card_id" class="form-control" data-rule="required;remote(importschool/check_idcard);" name="row[card_id]" type="text" value="{$row.card_id}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Tel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tel" class="form-control" name="row[tel]" type="text" data-rule="required;mobile" value="{$row.tel}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Work_unit')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-work_unit" class="form-control" name="row[work_unit]" type="text" data-rule="required" value="{$row.work_unit}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Memo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-memo" class="form-control " rows="5" name="row[memo]" cols="50" data-rule="required" >{$row.memo}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admission_starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admission_starttime" data-rule="required"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[admission_starttime]" type="text" value="{:$row.admission_starttime_text?datetime($row.admission_starttime_text):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Admission_endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admission_endtime" data-rule="required"  class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[admission_endtime]" type="text"  value="{:$row.admission_endtime_text?datetime($row.admission_endtime_text):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Reception_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select class="form-control"  name="row[reception_id]" data-rule="required">
                <option value="0">请选择</option>
                {foreach name="reception_unit" item="vo"}
                <option value="{$vo.id}" {if $vo.id eq $row.reception_id} selected {/if}>{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('车牌号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-car_number" class="form-control" name="row[car_number]" type="text" value="{$row.car_number}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
